package com.wbw;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@EnableAsync // 开启 Spring 异步的功能
@MapperScan("com.wbw.mapper")  //mybatis中的注解，扫dao层，有该注解时dao层可以省略@Mapper注解
@ComponentScan("com.wbw") // spring默认扫启动类所在的包下的所有组件
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("start=============================");
    }
}




